package com.jianfeiliao.portfolio.page;

import javax.servlet.http.HttpServletResponse;

import org.apache.wicket.PageParameters;

public class ErrorPage extends BasePage {

    private static final long serialVersionUID = 1L;
    
    public ErrorPage(PageParameters params) {
        super(params);
    }
    
    @Override
    protected void configureResponse() {
        super.configureResponse();
        getWebRequestCycle().getWebResponse().
            getHttpServletResponse().setStatus(HttpServletResponse.SC_NOT_FOUND);
    }
    
    @Override
    public boolean isVersioned() {
        return false;
    }
    
    @Override
    public boolean isErrorPage() {
        return true;
    }
}
